/*********************************************************************************************
 *
 *		  Function to concatinate two strings											 *
 *
 ********************************************************************************************/
#include "mystrings.h"

char * mystrncat(char *dest, const char *src, int n) 
{						/* function to concadinate n char of 2 strings */

	char *temp = dest ;					/* ptr to return the address */

	printf (" src =%s dest = %s num =%d  \n",dest,src,n);
	while (*dest)
		dest++;

	while ( (--n)&&(*dest++ = *src++) )
		;
		if(n)
		*dest++ = '\0' ;

	return temp ;
}

